<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
*/

?>
<div id="category">
  <ul>
    <?php foreach($make as $m): ?>
    <li><?php echo link_to($m->getName(), 'stocklist/index?make_id='.$m->getId().'&name='.to_url_string($m->getName()))?>
      <ul>
        <?php foreach($m->getModelsWithVehicle() as $model): ?>
        <li><?php echo link_to($model->getName(), 'stocklist/index?model_id='.$model->getId().'&make_name='.to_url_string($m->getName()).'&name='.to_url_string($model->getName()))?></li>
        <?php endforeach;?>
      </ul>
    </li>
    <?php endforeach;?>
  </ul>
</div> <!--*** category end ***-->
